package com.jiangjiang.eshop.wms.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName SendOutOrderEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/9/17 19:13
 * @Version 1.0
 **/
@Data
@TableName("wms_send_out_order")
public class SendOutOrderEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 销售出库单id
     */
    @TableField("sale_delivery_order_id")
    private Long saleDeliveryOrderId;

    /**
     * 用户账号ID
     */
    @TableField("user_account_id")
    private Long userAccountId;

    /**
     * 用户名称
     */
    @TableField("username")
    public String username;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 收货人
     */
    @TableField("consignee")
    private String consignee;

    /**
     * 收货地址
     */
    @TableField("delivery_address")
    private String deliveryAddress;

    /**
     * 收货人电话号码
     */
    @TableField("consignee_cell_phone_number")
    private String consigneeCellPhoneNumber;

    /**
     * 运费
     */
    @TableField("freight")
    private Double freight;

    /**
     * 支付方式，1：支付宝，2：微信
     */
    @TableField("pay_type")
    private Integer payType;

    /**
     * 订单总金额
     */
    @TableField("total_amount")
    private Double totalAmount;

    /**
     * 促销活动折扣金额
     */
    @TableField("discount_amount")
    private Double discountAmount;
    /**
     * 优惠券抵扣金额
     */
    @TableField("coupon_amount")
    private Double couponAmount;

    /**
     * 应付金额，订单总金额 - 促销活动折扣金额 - 优惠券抵扣金额 + 运费
     */
    @TableField("payable_amount")
    private Double payableAmount;

    /**
     * 发票抬头
     */
    @TableField("invoice_title")
    private String invoiceTitle;

    /**
     * 纳税人识别号
     */
    @TableField("taxpayer_id")
    private String taxpayerId;

    /**
     * 订单备注
     */
    @TableField("order_comment")
    private String orderComment;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}